package com.esl.dto.admin;

import java.sql.Date;
import java.text.SimpleDateFormat;

import com.esl.model.admin.Task;



public class Task_Dto {
	
	private String t_name;
	private String t_desc;
	private String t_start;
	private String t_end;
	private String t_state;
	private String t_temp;
	
	public Task toTask()
	{
		System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		
		System.out.println(t_start+"======================="+t_start);
		
		return new Task(t_name,t_desc,new Date(Date.parse(t_start)),new Date(Date.parse(t_end)),t_state,t_temp);
	}
	/*-------------------------------------------*/

	
	public String getT_name() {
		return t_name;
	}

	public void setT_name(String t_name) {
		this.t_name = t_name;
	}

	public String getT_desc() {
		return t_desc;
	}

	public void setT_desc(String t_desc) {
		this.t_desc = t_desc;
	}

	public String getT_start() {
		return t_start;
	}

	public void setT_start(String t_start) {
		this.t_start = t_start;
	}

	public String getT_end() {
		return t_end;
	}

	public void setT_end(String t_end) {
		this.t_end = t_end;
	}

	public String getT_state() {
		return t_state;
	}

	public void setT_state(String t_state) {
		this.t_state = t_state;
	}

	public String getT_temp() {
		return t_temp;
	}

	public void setT_temp(String t_temp) {
		this.t_temp = t_temp;
	}

	
	
	

}
